package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.SexDao;
import com.itheima.service.SexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service(interfaceClass = SexService.class)
@Transactional
public class SexServiceImpl implements SexService {

    @Autowired
    private SexDao sexDao;

    @Override
    public List<Map<String, Object>> findSexCount() {
        return sexDao.findSexCount();
    }
}
